<template>
  <system-index>
    <coupon-page ref="sysComp"></coupon-page>
  </system-index>
</template>

<script>
  import SystemIndex from 'views/systemIndex';
  import CouponPage from 'views/couponPage';

  import mainPageMixins from '../mainPageMixins';

  export default {
    mixins: [mainPageMixins],

    data() {
      return {};
    },

    created() {
      wx.hideShareMenu();

      window.resetCoupon = coupon => {
        this.$refs['sysComp'].resetCoupon(coupon);
      };
    },

    components: {
      SystemIndex,
      CouponPage
    }
  };

</script>
